package com.example.rwq_test.util;

import java.util.concurrent.atomic.AtomicLong;

/**
 * @Description
 * @Author renweiqiang
 * @Date 2024/4/28 上午11:52
 */
public class AutoIncrementIDGenerator {
    private static volatile AtomicLong ID = new AtomicLong(0);

    public static long getID() {
        return ID.getAndIncrement();
    }
}
